import request from '@/utils/request'

export function list(query) {
  return request({
    url: '/examine/goods/example/list',
    method: 'get',
    params: query
  })
}
export function listAll(query) {
  return request({
    url: '/examine/goods/example/listAll',
    method: 'get',
    params: query
  })
}




export function get(id) {
  return request({
    url: '/examine/goods/example/' + id,
    method: 'get'
  })
}


export function add(data) {
  return request({
    url: '/examine/goods/example/add',
    method: 'post',
    data: data
  })
}


export function update(data) {
  return request({
    url: '/examine/goods/example/',
    method: 'put',
    data: data
  })
}


export function del(id) {
  return request({
    url: '/examine/goods/example/' + id,
    method: 'delete'
  })
}

export function createExamineGoods(data) {
  return request({
    url: '/order/panel/createExamineGoods',
    method: 'post',
    data:data
  })
}

export function createBuffetExamineGoods(data) {
  return request({
    url: '/order/panel/createBuffetExamineGoods',
    method: 'post',
    data:data
  })
}

